﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Statement.aspx.cs" EnableEventValidation="false"  Inherits="WMS6.Web.Billing.Statement"
    meta:resourcekey="Page" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Statement</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />

    <script src="../Js/jquery.js" type="text/javascript"></script>

    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>

    <script src="../Js/util.js" id="js" type="text/javascript"></script>

    <script src="../Js/InitPage.js" type="text/javascript"></script>

    <script src="../Js/Verification.js" type="text/javascript"></script>

    <script src="../Js/checkbox.js" type="text/javascript"></script>

    <script src="../Js/calendar.js" type="text/javascript" charset="gb2312"></script>
    
    <script src="../Js/jquery.blockUI.js" type="text/javascript"></script>

    <script type="text/javascript">
        //初始化页面
        window.onload = function() {
            initEditNewPage();
        }
        //弹出窗口选择货主
        function selectOwner() {
            var rtnValue = popModalWindow('../Configuration/OwnerQuery.aspx?action=txtOwnerID', 'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if (rtnValue != null && rtnValue.toString() != "") {
                document.getElementById("txtOwnerID").focus();
                document.getElementById("txtOwnerID").value = rtnValue;
            }
        }
        function newStatement() {
            var from = document.getElementById("hdnFrom").value;
            window.location.href = "Statement.aspx?from=" + escape(from);
            return false;
        }
        
         function selectBillingObject()
        {
            var objectID= document.getElementById("ddlBillingObject").value;
            var rtnValue = null;
            if(objectID != null && objectID.toString().toUpperCase() == "VENDOR")
            {
                rtnValue = popModalWindow('../Configuration/VendorQuery.aspx?action=txtBillingObject', 'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            }
            else if(objectID != null && objectID.toString().toUpperCase() == "CUSTOMER")
            {
                rtnValue = popModalWindow('../Configuration/CustomerQuery.aspx?action=txtBillingObject', 'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            }
            else if(objectID != null && objectID.toString().toUpperCase() == "CARRIER")
            {
                rtnValue = popModalWindow('../Configuration/CarrierQuery.aspx?action=txtBillingObject', 'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            }
            else if(objectID != null && objectID.toString().toUpperCase() == "BILLINGENTITY")
            {
                rtnValue = popModalWindow('../Configuration/BillingentityQuery.aspx?action=txtBillingObject', 'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            }
            else if(objectID != null && objectID.toString().toUpperCase() == "OWNER")
            {
                rtnValue = popModalWindow('../Configuration/OwnerQuery.aspx?action=txtBillingObject', 'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            }
 
            if (rtnValue != null && rtnValue.toString() != "") {
                document.getElementById("txtBillingObject").focus();
                document.getElementById("txtBillingObject").value = rtnValue;
            }
        }


        function confirmMsg(code) {
            if (code == "F9200_001") {
                if (confirm('<%=GetGlobalMsgResource("F9200_001") %>')) {
                    return true;
                }
                else {
                    return false;
                }
            }
            else if (code == "F9200_002") {
            if (confirm('<%=GetGlobalMsgResource("F9200_002") %>')) {
                    return true;
                }
                else {
                    return false;
                }
            }
            else if (code == "F9200_016") {
            if (confirm('<%=GetGlobalMsgResource("F9200_016") %>')) {
                    return true;
                }
                else {
                    return false;
                }
            }
            else if (code == "F9200_021") {
            if (confirm('<%=GetGlobalMsgResource("F9200_021") %>')) {
                    return true;
                }
                else {
                    return false;
                }
            }
        }
        
        //锁屏
		function blockScreen()
		{
		    //锁屏
		    $.blockUI.defaults.message = GetBlockUIMsg();
            $.blockUI.defaults.overlayCSS.backgroundColor = GetBlockUIBgColor();
            $.blockUI();
        }
    </script>

</head>
<body>
    <form id="F9201" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <div id="div_top">
            <table>
                <tr>
                    <td valign="bottom">
                        <asp:Label ID="lblOwner" runat="server" CssClass="label_header" Text="对账单" meta:resourcekey="lblOwner"></asp:Label>
                    </td>
                    <td>
                        <asp:Button ID="btnGoBack" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnGoBack%>"
                            Enabled="False" OnClick="btnGoBack_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btnNew" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnNew%>"
                            Enabled="False" OnClick="btnNew_Click" />
                    </td>
                    
                    <td>
                        <asp:Button ID="btnDelete" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnDelete%>"
                            Enabled="False" AccessKey="n" OnClientClick="javascript:if(confirmMsg('F9200_016')) return true; else return false;" OnClick="btnDelete_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btnSave" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnSave%>"
                            Enabled="False" AccessKey="n" OnClick="btnSave_Click"  OnClientClick="blockScreen();"  />
                    </td>
                    <td>
                        <asp:Button ID="btnSearch" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnSearch%>"
                            Enabled="False" AccessKey="n" OnClick="btnSearch_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btnConfirm" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnConfirm%>"
                            Enabled="False" AccessKey="s" OnClientClick="javascript:if(confirmMsg('F9200_001')) return true; else return false;"
                            OnClick="btnConfirm_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btnRevertConfirm" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnRevertConfirm%>"
                            Enabled="False" AccessKey="s" OnClientClick="javascript:if(confirmMsg('F9200_021')) return true; else return false;"
                            OnClick="btnRevertConfirm_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btnExport" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnExport%>"
                            Enabled="False" AccessKey="n" OnClick="btnExport_Click" />
                    </td>
                    <%--<td>
                        <asp:Button ID="btnPay" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnPay%>"
                            Enabled="False" AccessKey="d" OnClientClick="javascript:if(confirmMsg('F9200_002')) return true; else return false;"
                            OnClick="btnPay_Click" />
                    </td>--%>
                    <td>
                    </td>
                </tr>
            </table>
        </div>
        <asp:UpdatePanel ID="up1" runat="server">
            <ContentTemplate>
                <div>
                    <asp:Label ID="lblMsg" runat="server" CssClass="label_message" meta:resourcekey="lblMsg"></asp:Label>
                </div>
                <div id="div_menu">
                    <div style="float: left; width: 8px;">
                        <div class="tabL" id="divL1">
                        </div>
                    </div>
                    <div style="float: left;" class="tabLabelCont tabCur" onclick="setTab('one',1,3)"
                        id="divM1">
                        <asp:Label ID="one1" CssClass="hover" runat="server" meta:resourcekey="one1">基本信息</asp:Label></div>
                    <div style="float: left; margin-right: 2px;">
                        <div class="tabR" id="divR1">
                        </div>
                    </div>
                    <div style="float: left; width: 8px;">
                        <div class="tabL_1" id="divL2">
                        </div>
                    </div>
                    <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',2,3);"
                        id="divM2">
                        <asp:Label ID="one2" CssClass="navigationlabel" runat="server" meta:resourcekey="one2">&nbsp;对账单明细&nbsp;</asp:Label></div>
                    <div style="float: left; margin-right: 2px;">
                        <div class="tabR_1" id="divR2">
                        </div>
                    </div>
                    <div style="float: left; width: 8px;">
                        <div class="tabL_1" id="divL3">
                        </div>
                    </div>
                    <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',3,3);"
                        id="divM3">
                        <asp:Label ID="one3" CssClass="navigationlabel" runat="server" meta:resourcekey="one3">&nbsp;费用凭据明细&nbsp;</asp:Label></div>
                    <div style="float: left; margin-right: 2px;">
                        <div class="tabR_1" id="divR3">
                        </div>
                    </div>
                </div>
                <div id="div_content">
                    <div id="con_one_1" style="display: block;">
                        <table width="720px" style="margin-left: 10px; margin-top: 10px;">
                            <tr>
                                <td width="180">
                                    <asp:Label ID="lblStatementID" runat="server" CssClass="label" Text="对账单编号" meta:resourcekey="lblStatementID"></asp:Label><span
                                        class="must_input">*</span>
                                </td>
                                <td width="180">
                                    <asp:Label ID="lblDueFromTo" runat="server" CssClass="label" Text="应收应付" 
                                         meta:resourcekey="lblDueFromTo"></asp:Label><span class="must_input">*</span>  
                                </td>
                                <td width="180">
                                    <asp:Label ID="lblBillingObject" runat="server" CssClass="label" Text="对象类型" 
                                            meta:resourcekey="lblBillingObject"></asp:Label><span class="must_input">*</span>  
                                </td>
                                <td width="180">
                                    <asp:Label ID="lblBillingObjectID" runat="server" CssClass="label" Text="计费对象" 
                                        meta:resourcekey="lblBillingObjectID"></asp:Label><span
                                        class="must_input">*</span> 
                                </td>
                            </tr>
                            <tr>
                                <td width="180">
                                    <asp:TextBox ID="txtStatementID" runat="server" CssClass="textbox" MaxLength="20"
                                        meta:resourcekey="txtStatementID"></asp:TextBox>
                                </td>
                                <td width="180">
                                    <asp:DropDownList ID="ddlDueFromTo" runat="server" CssClass="mediumselectbox" 
                                        meta:resourcekey="ddlDueFromTo">
                                    </asp:DropDownList>
                                </td>
                                <td width="180">
                                    <asp:DropDownList ID="ddlBillingObject" runat="server" 
                                        CssClass="mediumselectbox" AutoPostBack="true" onselectedindexchanged="ddlBillingObject_SelectedIndexChanged" 
                                        meta:resourcekey="ddlBillingObject"> 
                                    </asp:DropDownList>
                                </td>
                                <td width="180">
                                    <asp:TextBox ID="txtBillingObject" runat="server" CssClass="textbox"
                                        meta:resourcekey="txtBillingObject" ></asp:TextBox><img src="../Images/icon_find.gif" id="img1" runat="server" alt="select one item" class="img" onclick="selectBillingObject();"/>
                                </td>
                            </tr>
                            
                            <tr>
                                <td width="180">
                                    <asp:Label ID="lblEndTime" runat="server" CssClass="label" Text="截止日期" meta:resourcekey="lblEndTime"></asp:Label><span class="must_input">*</span>  
                                </td>
                                <td width="180">
                                    <asp:Label ID="Label1" runat="server" CssClass="label" Text="状态" meta:resourcekey="lblStatus"></asp:Label>
                                </td>
                                <td width="180">
                                    <asp:Label ID="lblPaymentDate" runat="server" CssClass="label" Text="最后付款日期" meta:resourcekey="lblPaymentDate"></asp:Label>   
                                </td>
                                <td width="180">
                                    <asp:Label ID="lblTotalAmount" runat="server" CssClass="label" Text="总金额" meta:resourcekey="lblTotalAmount"></asp:Label>   
                                </td>
                            </tr>
                            <tr>
                                <td width="180">
                                     <asp:TextBox ID="txtEndTime" runat="server" CssClass="textbox" meta:resourcekey="txtEndTime"></asp:TextBox><img
                                        src="../Images/calendar.gif" id="img2" runat="server" class="img" alt="请选择日期" onclick="setday(this,txtEndTime);" />
                                </td>
                                <td width="180">
                                    <asp:DropDownList ID="ddlStatus" runat="server" CssClass="mediumselectbox" Enabled="False"
                                        meta:resourcekey="ddlStatus">
                                    </asp:DropDownList>
                                </td>
                                <td width="180">
                                      <asp:TextBox ID="txtPaymentDate" runat="server" CssClass="textbox" MaxLength="20"
                                        Enabled="False" meta:resourcekey="txtPaymentDate"></asp:TextBox>
                                </td>
                                <td width="180">
                                     <asp:TextBox ID="txtTotalAmount" runat="server" CssClass="textbox" Enabled="False"
                                        meta:resourcekey="txtTotalAmount"></asp:TextBox>
                                </td>
                            </tr>
                            
                            <tr>
                                <td width="180">
                                    <asp:Label ID="lblRemark" runat="server" CssClass="label" Text="备注" meta:resourcekey="lblRemark"></asp:Label>
                                </td>
                                <td width="180">
                                     
                                </td>
                                <td width="180">
                                    <asp:Label ID="lblInvoiceAmount" runat="server" CssClass="label" Text="已开发票金额" meta:resourcekey="lblInvoiceAmount"></asp:Label>   
                                </td>
                                <td width="180">
                                    <asp:Label ID="lblPayAmount" runat="server" CssClass="label" Text="已付款金额" meta:resourcekey="lblPayAmount"></asp:Label>   
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" rowspan="3">
                                     <asp:TextBox ID="txtRemark" runat="server" CssClass="largetextarea"  TextMode="MultiLine" MaxLength = "100" meta:resourcekey="txtRemark"></asp:TextBox>
                                </td>
                                <td width="180">
                                     <asp:TextBox ID="txtInvoiceAmount" runat="server" CssClass="textbox" Enabled="False"
                                        meta:resourcekey="txtInvoiceAmount"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtPayAmount" runat="server" CssClass="textbox" Enabled="False"
                                        meta:resourcekey="txtPayAmount"></asp:TextBox>
                                </td>
                            </tr>
                            
                            <tr>
                                <td width="180">
                                    <asp:Label ID="lblLastInvoiceAmount" runat="server" CssClass="label" Text="未开发票金额" meta:resourcekey="lblLastInvoiceAmount"></asp:Label>   
                                </td>
                                <td width="180">
                                    <asp:Label ID="lblLastPayAmount" runat="server" CssClass="label" Text="未收/付款金额" meta:resourcekey="lblLastPayAmount"></asp:Label>   
                                </td>
                                
                            </tr>
                            <tr>
                                <td width="180">
                                     <asp:TextBox ID="txtLastInvoiceAmount" runat="server" CssClass="textbox" Enabled="False"
                                        meta:resourcekey="txtLastInvoiceAmount"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtLastPayAmount" runat="server" CssClass="textbox" Enabled="False"
                                        meta:resourcekey="txtLastPayAmount"></asp:TextBox>
                                </td>
                            </tr>

                            <tr>
                                <td>
                                    &nbsp;
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:CheckBox ID="chkInBound" runat="server" CssClass="checkbox" Text="入库费" Checked="True"
                                        meta:resourcekey="chkInBound" />
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:CheckBox ID="chkOutBound" runat="server" CssClass="checkbox" Text="出库费" Checked="True"
                                        meta:resourcekey="chkOutBound" />
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:CheckBox ID="chkMovement" runat="server" CssClass="checkbox" Text="移动费" Checked="True"
                                        meta:resourcekey="chkMovement" />
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:CheckBox ID="chkVas" runat="server" CssClass="checkbox" Text="增值费" Checked="True"
                                        meta:resourcekey="chkVas" />
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:CheckBox ID="chkInventory" runat="server" CssClass="checkbox" Text="仓储费" Checked="True"
                                        meta:resourcekey="chkInventory" />
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:CheckBox ID="chkStorageCharges" runat="server" CssClass="checkbox" Text="包仓费" Checked="True"
                                        meta:resourcekey="chkStorageCharges" />
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:CheckBox ID="chkAccessorial" runat="server" CssClass="checkbox" Text="附加费" Checked="True"
                                        meta:resourcekey="chkAccessorial" />
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    &nbsp;
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div id="con_one_2" style="display: none; overflow-x: auto; overflow-y: hidden;">
                        <table width="1100px" style="margin-left: 10px; margin-top: 10px;">
                            <tr style="height: 10px;">
                                <td>
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <div>
                                        <asp:GridView ID="gvStatementDetail" runat="server" AllowSorting="True" AutoGenerateColumns="False" PageSize = "50"
                                            CssClass="gridview" OnRowDataBound="gvStatementDetail_RowDataBound" DataKeyNames="CREDENCE_TYPE,BILLING_OBJECT,BILLING_OBJECT_ID,DUE_FROM_TO,COST_TYPE,DOC_ID,BILLING_AMOUNT"
                                            AllowPaging="True" OnPageIndexChanging="gvStatementDetail_PageIndexChanging" oninit="gvStatementDetail_Init"  Width="1100px" 
                                            OnSorting="gvStatementDetail_Sorting" meta:resourcekey="gvStatementDetail">
                                            <FooterStyle CssClass="GridViewFooterStyle" />
                                            <RowStyle CssClass="GridViewRowStyle" />
                                            <HeaderStyle CssClass="GridViewHeaderStyle" />
                                            <PagerStyle CssClass="GridViewPageStyle" />
                                            <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                                            <Columns>
                                                <asp:BoundField HeaderText="序号" FooterText="序号" meta:resourcekey="No">
                                                    <ItemStyle CssClass="GridViewRowWidth_40" />
                                                </asp:BoundField>
                                                <asp:TemplateField meta:resourcekey="TemplateField">
                                                    <HeaderTemplate>
                                                        <asp:CheckBox ID="CheckBox1" runat="server" onclick="selectAll(this,'gvStatementDetail');"
                                                            meta:resourcekey="CheckBox1" />
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <asp:CheckBox ID="chbSelect" runat="server" meta:resourcekey="chbSelect" />
                                                    </ItemTemplate>
                                                    <FooterTemplate>
                                                        <asp:CheckBox ID="CheckBox2" runat="server" onclick="selectAll(this,'gvStatementDetail');"
                                                            meta:resourcekey="CheckBox2" />
                                                    </FooterTemplate>
                                                    <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_40" />
                                                    <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_40" />
                                                </asp:TemplateField>
                                                <asp:BoundField DataField="BILLING_OBJECT_DESCR" HeaderText="结算类型" FooterText="结算类型" SortExpression="BILLING_OBJECT_DESCR"
                                                    meta:resourcekey="BILLING_OBJECT_DESCR">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>     
                                            
                                                <asp:BoundField DataField="BILLING_OBJECT_ID" HeaderText="结算对象" FooterText="结算对象" SortExpression="BILLING_OBJECT_ID"
                                                    meta:resourcekey="BILLING_OBJECT_ID">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                
                                                <asp:BoundField DataField="BILLING_OBJECT_NAME" HeaderText="客户名称" FooterText="客户名称" SortExpression="BILLING_OBJECT_NAME"
                                                    meta:resourcekey="BILLING_OBJECT_NAME">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                
                                                <asp:BoundField DataField="CREDENCE_TYPE_DESCR" HeaderText="业务类型" FooterText="业务类型" SortExpression="CREDENCE_TYPE_DESCR"
                                                    meta:resourcekey="CREDENCE_TYPE_DESCR">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                
                                                <asp:BoundField DataField="DOC_ID" HeaderText="业务单号" FooterText="业务单号" SortExpression="DOC_ID"
                                                    meta:resourcekey="DOC_ID">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                
                                                <asp:BoundField DataField="EXTERNAL_DOC_ID" HeaderText="外部订单号" FooterText="外部订单号" SortExpression="EXTERNAL_DOC_ID"
                                                    meta:resourcekey="EXTERNAL_DOC_ID">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                                                               
                                                <asp:BoundField DataField="COST_TYPE_DESCR" HeaderText="费用名称" FooterText="费用名称" SortExpression="COST_TYPE_DESCR"
                                                    meta:resourcekey="COST_TYPE_DESCR">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                
                                                <asp:BoundField DataField="DUE_FROM_TO_DESCR" HeaderText="应收应付" FooterText="应收应付" SortExpression="DUE_FROM_TO_DESCR"
                                                    meta:resourcekey="DUE_FROM_TO_DESCR">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                
                                                <asp:BoundField DataField="BILLING_AMOUNT" HeaderText="金额" FooterText="金额" SortExpression="BILLING_AMOUNT"
                                                    meta:resourcekey="BILLING_AMOUNT">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                
                                                <asp:BoundField DataField="REMARK" HeaderText="备注" FooterText="备注" SortExpression="REMARK"
                                                    meta:resourcekey="REMARK">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                
                                                <asp:BoundField DataField="CREDENCE_TYPE" HeaderText="业务类型" FooterText="业务类型" SortExpression="CREDENCE_TYPE"
                                                     Visible ="false"  meta:resourcekey="CREDENCE_TYPE">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="BILLING_OBJECT" HeaderText="结算类型" FooterText="结算类型" SortExpression="BILLING_OBJECT"
                                                     Visible ="false"  meta:resourcekey="BILLING_OBJECT">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="DUE_FROM_TO" HeaderText="应收应付" FooterText="应收应付" SortExpression="DUE_FROM_TO"
                                                     Visible ="false"  meta:resourcekey="DUE_FROM_TO">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="COST_TYPE" HeaderText="费用名称" FooterText="费用名称" SortExpression="COST_TYPE"
                                                     Visible ="false"  meta:resourcekey="COST_TYPE">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                            </Columns>
                                        </asp:GridView>
                                    </div>
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr style="height: 30px;">
                                <td>
                                </td>
                                <td>
                                </td>
                            </tr>
                        </table>
                    </div>
                    
                    <div id="con_one_3" style="display: none; overflow-x: auto; overflow-y: hidden;">
                        <table width="1080px" style="display: block; margin-left: 10px; margin-top: 10px;">
                            <tr>
                                <td>
                                    <div>
                                        <asp:GridView ID="gvStatementBillingCredence" runat="server" AutoGenerateColumns="False" AllowPaging="True" AllowSorting="True"  PageSize = "50"
                                            CssClass="gridview" DataKeyNames="CREDENCE_TYPE,BILLING_OBJECT,BILLING_OBJECT_ID,DUE_FROM_TO,COST_TYPE,DOC_ID,BILLING_AMOUNT" Width="1100px" 
                                            OnRowDataBound="gvStatementBillingCredence_RowDataBound" OnPageIndexChanging="gvStatementBillingCredence_PageIndexChanging"
                                            OnSorting="gvStatementBillingCredence_Sorting" oninit="gvStatementBillingCredence_Init"
                                            meta:resourcekey="gvStatementBillingCredence">
                                            <FooterStyle CssClass="GridViewFooterStyle" />
                                            <RowStyle CssClass="GridViewRowStyle" />
                                            <HeaderStyle CssClass="GridViewHeaderStyle" />
                                            <PagerStyle CssClass="GridViewPageStyle" />
                                            <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                                            <Columns>
                                                <asp:BoundField HeaderText="序号" FooterText="序号" meta:resourcekey="No">
                                                    <ItemStyle CssClass="GridViewRowWidth_50" />
                                                </asp:BoundField>
                                                <asp:TemplateField meta:resourcekey="TemplateField">
                                                    <HeaderTemplate>
                                                        <asp:CheckBox ID="CheckBox1" runat="server" onclick="selectAll(this,'gvStatementBillingCredence');"
                                                            meta:resourcekey="CheckBox1" />
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <asp:CheckBox ID="chbSelect" runat="server" meta:resourcekey="chbSelect" />
                                                    </ItemTemplate>
                                                    <FooterTemplate>
                                                        <asp:CheckBox ID="CheckBox2" runat="server" onclick="selectAll(this,'gvStatementBillingCredence');"
                                                            meta:resourcekey="CheckBox2" />
                                                    </FooterTemplate>
                                                    <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_40" />
                                                    <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_40" />
                                                </asp:TemplateField>
                                                <asp:BoundField DataField="BILLING_OBJECT_DESCR" HeaderText="结算类型" FooterText="结算类型" SortExpression="BILLING_OBJECT_DESCR"
                                                    meta:resourcekey="BILLING_OBJECT_DESCR">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>     
                                            
                                                <asp:BoundField DataField="BILLING_OBJECT_ID" HeaderText="结算对象" FooterText="结算对象" SortExpression="BILLING_OBJECT_ID"
                                                    meta:resourcekey="BILLING_OBJECT_ID">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                
                                                <asp:BoundField DataField="BILLING_OBJECT_NAME" HeaderText="客户名称" FooterText="客户名称" SortExpression="BILLING_OBJECT_NAME"
                                                    meta:resourcekey="BILLING_OBJECT_NAME">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                
                                                <asp:BoundField DataField="CREDENCE_TYPE_DESCR" HeaderText="业务类型" FooterText="业务类型" SortExpression="CREDENCE_TYPE_DESCR"
                                                    meta:resourcekey="CREDENCE_TYPE_DESCR">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                
                                                <asp:BoundField DataField="DOC_ID" HeaderText="业务单号" FooterText="业务单号" SortExpression="DOC_ID"
                                                    meta:resourcekey="DOC_ID">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                
                                                <asp:BoundField DataField="EXTERNAL_DOC_ID" HeaderText="外部订单号" FooterText="外部订单号" SortExpression="EXTERNAL_DOC_ID"
                                                    meta:resourcekey="EXTERNAL_DOC_ID">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="COST_TYPE_DESCR" HeaderText="费用名称" FooterText="费用名称" SortExpression="COST_TYPE_DESCR"
                                                    meta:resourcekey="COST_TYPE_DESCR">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                
                                                <asp:BoundField DataField="DUE_FROM_TO_DESCR" HeaderText="应收应付" FooterText="应收应付" SortExpression="DUE_FROM_TO_DESCR"
                                                    meta:resourcekey="DUE_FROM_TO_DESCR">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                
                                                <asp:BoundField DataField="BILLING_AMOUNT" HeaderText="金额" FooterText="金额" SortExpression="BILLING_AMOUNT"
                                                    meta:resourcekey="BILLING_AMOUNT">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                
                                                <asp:BoundField DataField="REMARK" HeaderText="备注" FooterText="备注" SortExpression="REMARK"
                                                    meta:resourcekey="REMARK">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                
                                                <asp:BoundField DataField="CREDENCE_TYPE" HeaderText="业务类型" FooterText="业务类型" SortExpression="CREDENCE_TYPE"
                                                     Visible ="false"  meta:resourcekey="CREDENCE_TYPE">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="BILLING_OBJECT" HeaderText="结算类型" FooterText="结算类型" SortExpression="BILLING_OBJECT"
                                                     Visible ="false"  meta:resourcekey="BILLING_OBJECT">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="DUE_FROM_TO" HeaderText="应收应付" FooterText="应收应付" SortExpression="DUE_FROM_TO"
                                                     Visible ="false"  meta:resourcekey="DUE_FROM_TO">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="COST_TYPE" HeaderText="费用名称" FooterText="费用名称" SortExpression="COST_TYPE"
                                                     Visible ="false"  meta:resourcekey="COST_TYPE">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                
                                            </Columns>
                                        </asp:GridView>
                                    </div>
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr style="height: 30px;">
                                <td>
                                </td>
                                <td>
                                </td>
                            </tr>
                        </table>
                    </div>
                    
                </div>
                <input type="hidden" id="hdnFlag" runat="server"></input>
                    <input id="hdnLineID" runat="server" type="hidden"></input>
                    <input id="hdnStatementID" runat="server" type="hidden"></input>
                
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    <input type="hidden" id="hdnFrom" runat="server" />
    <input type="hidden" id="hdncalendarFlag" runat="server" />
    <input type="hidden" id="hdnDataFormat" runat="server" />
    </form>
</body>
</html>

<script language="javascript" type="text/javascript" event="onclick" for="document">
		<!--
		 hiddenCalendarDiv();
		//-->
</script>

